package domain

type ResultHits struct {
	Shards struct {
		Total      int `json:"total" gorm:"column:total"`
		Failed     int `json:"failed" gorm:"column:failed"`
		Successful int `json:"successful" gorm:"column:successful"`
		Skipped    int `json:"skipped" gorm:"column:skipped"`
	} `json:"_shards" gorm:"column:_shards"`
	Hits struct {
		Hits []struct {
			Index  string      `json:"_index" gorm:"column:_index"`
			Type   string      `json:"_type" gorm:"column:_type"`
			Source interface{} `json:"_source" gorm:"column:_source"`
			ID     string      `json:"_id" gorm:"column:_id"`
			Score  float64     `json:"_score" gorm:"column:_score"`
		} `json:"hits" gorm:"column:hits"`
		Total struct {
			Value    int    `json:"value" gorm:"column:value"`
			Relation string `json:"relation" gorm:"column:relation"`
		} `json:"total" gorm:"column:total"`
		MaxScore float64 `json:"max_score" gorm:"column:max_score"`
	} `json:"hits" gorm:"column:hits"`
	Took     int  `json:"took" gorm:"column:took"`
	TimedOut bool `json:"timed_out" gorm:"column:timed_out"`
}
